package com.heima.model.admin.vo;
import com.heima.model.admin.pojos.AdUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@NoArgsConstructor
public class AdUserVO {
    private Integer id;
    private String name;
    private String nickname;
    private String image;
    private String email;
    private Date loginTime;
    private Date createdTime;

    public AdUserVO(AdUser user) {
        this.id = user.getId();
        this.name = user.getName();
        this.nickname = user.getNickname();
        this.image = user.getImage();
        this.email = user.getEmail();
        this.loginTime = user.getLoginTime();
        this.createdTime = user.getCreatedTime();
    }
}